//
//  NRWUpdataAppApi.m
//  NRWMall
//
//  Created by 张记 on 2018/6/28.
//  Copyright © 2018年 com.anpxd. All rights reserved.
//

#import "NRWUpdataAppApi.h"

@implementation NRWUpdataAppApi
- (NSString *)requestUrl {
    
    return [NSString stringWithFormat:@"%@%@", erpApi(), @"/controller/getApk"];
}

- (YTKRequestMethod)requestMethod {
    
    return YTKRequestMethodPOST;
}

- (id)requestArgument {
    NSDictionary *infoDict = [[NSBundle mainBundle] infoDictionary];
    NSString *version = [infoDict objectForKey:@"CFBundleShortVersionString"];
    NSDictionary *params = @{
                             @"apkKey":@"iOSClientApp",
                             @"apkVersion":version
                             };
    return params;
}

@end
